package com.heeexy.example.service.impl;

import com.heeexy.example.dao.newsDao;
import com.heeexy.example.service.NewsService;
import org.springframework.stereotype.Service;
import yinwei.bo.common.entry.news;

import javax.annotation.Resource;
import java.util.List;


@Service
public class newsServiceImpl implements NewsService {

    @Resource
    private newsDao newsDao;

    @Override
    public List findNews() {
        return newsDao.findNews();
    }

    @Override
    public news findByNewsId(int id) {
        return newsDao.findByNewsId(id);
    }
}
